// JavaScript Document
$(function() {
		// a workaround for a flaw in the demo system (http://dev.jqueryui.com/ticket/4375), ignore!
		
		$( "#amend-dialog-form" ).dialog({
			autoOpen: false,
			height: 350,
			width: 500,
			modal: true,
			buttons: {
				"Save": function() {
				},
				"Deactive": function() {
				},
				Cancel: function() {
					$( this ).dialog( "close" );
				}
			},
			close: function() {
				allFields.val( "" ).removeClass( "ui-state-error" );
			}
		});
	});

function amendProgram(){
	document.getElementById("aname").value = 'ABC';
	document.getElementById("adescription").value = 'DEF';
	document.getElementById("acontact").value = 'FPT Cau Giay';
	$( "#amend-dialog-form" ).dialog( "open" );
}